From: Andrew Garrett Date: Fri, 1 May 2009 12:55:29 +0000 (+0000) Subject: Sanitize class names applied by change tagging -- was not anticipating multi-word... X-Git-Tag: 1.31.0-rc.0~41917 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=790de961fc928d7f5a11f5105aeffba81473c6c5;p=lhc%2Fweb%2Fwiklou.git Sanitize class names applied by change tagging -- was not anticipating multi-word, ugly tag names --- diff --git a/includes/ChangeTags.php b/includes/ChangeTags.php index de804c5c95..2f967101d0 100644 --- a/includes/ChangeTags.php +++ b/includes/ChangeTags.php @@ -14,7 +14,7 @@ class ChangeTags { $displayTags = array(); foreach( $tags as $tag ) { $displayTags[] = self::tagDescription( $tag ); - $classes[] = "mw-tag-$tag"; + $classes[] = Sanitizer::escapeClass( "mw-tag-$tag" ); } return array( '(' . implode( ', ', $displayTags ) . ')', $classes );